sealed class Basic permits Derived{
    int x;
}
non-sealed class Derived extends Basic{

}

public class Main {
    public static void main(String[] args) {

        String Obj="hello";
        if(Obj instanceof String str){

        };
    }
}